<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="initial-sacale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Main Map View </title>
    <style type="text/css">
        body, html,#mainmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=RPh9g1Zp0cBsUHYXkr8nXoulqMNvIHa8"></script>
</head>
<body>
    <div id="mainmap" ></div>
</body>
</html>
<script type="text/javascript">
    // 百度地图API功能
    var map = new BMap.Map("mainmap");    // 创建Map实例
    var centerPoint = new BMap.Point(120.787272, 31.59500);
    map.centerAndZoom(centerPoint, 10);  // 初始化地图,设置中心点坐标和地图级别
    map.addControl(new BMap.NavigationControl({type:BMAP_NAVIGATION_CONTROL_ZOOM }));
    map.enableScrollWheelZoom(true);
</script>